|
Protege 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectedu.stanford.smi.protege.model.DefaultFrame
edu.stanford.smi.protege.model.DefaultInstance
public abstract class DefaultInstance
Default implementation of Instance interface. Forwards all method calls to its DefaultKnowledgeBase. This is the base class of all of the concrete frame classes such as those for slot, class, etc.
| Constructor Summary | |
|---|---|
protected |
DefaultInstance()
|
| Method Summary | |
|---|---|
void |
addDirectType(Cls type)
|
void |
addInstanceListener(InstanceListener listener)
|
Frame |
copy(KnowledgeBase targetKB,
Map valueMap,
boolean isDeep)
|
Frame |
deepCopy(KnowledgeBase targetKB,
Map valueMap)
Create a "deep copy" of the frame. |
String |
getBrowserText()
|
Cls |
getDirectType()
return the "first" direct type |
Collection |
getDirectTypes()
|
Object |
getOwnFacetValue(Slot slot,
Facet facet)
see Framefor a description of the return type |
Collection |
getOwnFacetValues(Slot slot,
Facet facet)
see Framefor a description of the return type |
Collection |
getReachableSimpleInstances()
|
boolean |
hasDirectType(Cls cls)
|
boolean |
hasType(Cls cls)
|
void |
moveDirectType(Cls type,
int index)
|
void |
removeDirectType(Cls type)
|
void |
removeInstanceListener(InstanceListener listener)
|
Instance |
setDirectType(Cls type)
|
Instance |
setDirectTypes(Collection types)
|
Frame |
shallowCopy(KnowledgeBase targetKB,
Map valueMap)
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
protected DefaultInstance()
| Method Detail |
|---|
public void addInstanceListener(InstanceListener listener)
addInstanceListener in interface Instance
public Frame deepCopy(KnowledgeBase targetKB,
Map valueMap)
Frame
deepCopy in interface Frame
public Frame shallowCopy(KnowledgeBase targetKB,
Map valueMap)
shallowCopy in interface Frame
public Frame copy(KnowledgeBase targetKB,
Map valueMap,
boolean isDeep)
copy in interface Framecopy in class DefaultFramepublic String getBrowserText()
getBrowserText in interface Framepublic Cls getDirectType()
Instance
getDirectType in interface Instancepublic Collection getDirectTypes()
getDirectTypes in interface Instance
public Object getOwnFacetValue(Slot slot,
Facet facet)
FrameFramefor a description of the return type
getOwnFacetValue in interface Frame
public Collection getOwnFacetValues(Slot slot,
Facet facet)
FrameFramefor a description of the return type
getOwnFacetValues in interface Framepublic Collection getReachableSimpleInstances()
getReachableSimpleInstances in interface Instancepublic boolean hasDirectType(Cls cls)
hasDirectType in interface Instancepublic boolean hasType(Cls cls)
hasType in interface Instancepublic void removeInstanceListener(InstanceListener listener)
removeInstanceListener in interface Instancepublic Instance setDirectType(Cls type)
setDirectType in interface Instancepublic Instance setDirectTypes(Collection types)
setDirectTypes in interface Instancepublic void addDirectType(Cls type)
addDirectType in interface Instancepublic void removeDirectType(Cls type)
removeDirectType in interface Instance
public void moveDirectType(Cls type,
int index)
moveDirectType in interface Instance
|
Protege 3.4.8 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||